package com.acenodie.acenodieopenglturorial.source;

import android.graphics.SurfaceTexture;

/**
 * Created by zhangb2 on 17.6.5.
 */

public interface ICameraSource {
    void open(int cameraId);
    void startPreview();
    void switchCamera(int cameraId);
    void setPreviewTexture(SurfaceTexture texture);
    void setConfig(CameraConfig config);
    void close();

    class CameraConfig{
        float aspectRatio; //宽高比
        int minPreviewWidth;
        int minPictureWidth;
    }
}
